﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Data;

namespace JHECIS.BLL.Triage.Common
{
    public class StatusValueConvert : IValueConverter
    {
        /// <summary>
        /// 出入科状态转文字  袁凤超 2022-03-28
        /// </summary>
        /// <param name="value"></param>
        /// <param name="targetType"></param>
        /// <param name="parameter"></param>
        /// <param name="culture"></param>
        /// <returns></returns>
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
                return "已分诊";
            if (value.ToString().Equals("0"))
            {
                return "已入科";
            }
            else
            {
                return "已结束";
            }
        }
        /// <summary>
        /// 接口实现  袁凤超 2022-03-28
        /// </summary>
        /// <param name="value"></param>
        /// <param name="targetType"></param>
        /// <param name="parameter"></param>
        /// <param name="culture"></param>
        /// <returns></returns>
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return string.Empty;
        }
    }
}
